package cn.congine.wizarpos.mall.model.open;

import java.io.Serializable;

/**
 * 券营销券明细
 * 
 * @author xudongdong
 *         2015年9月18日 上午11:17:15
 */
public class TicketMarketDef implements Serializable {

	private static final long serialVersionUID = 1L;
	// 券定义主键
	private String ticketDefId = null;	
	// 券名称
	private String ticketName = null;
	// 券定义描述
	private String description = null;
	// 券金额单位分
	private Integer balance = null;
	// 券面值单位元
	private String showBalance = null;
	// 券图片
	private String picUrl = null;
	// 券的类型 0 代金券 1折扣券 2礼品券 3团购券 4优惠券5.通用券6.商户红包7微信会员卡  是否微信依据微信flag
	private String ticketType = null;
	// 关联券数量
	private Integer ticketNums = null;
	// 券库存数量
	private Long quantity = null;
	// 兑换所需积分
	private Integer ticketPrice = null;
	
	// 起始时间戳   time_flag 为1生效
	private Long beginTimestamp;
	// 截至时间戳 time_flag 为1 生效
	private Long endTimestamp;
	// 0:固定时长 1:时间段 
	private String timeFlag;	
	// 有效期，单位：天。-1表示永久有效
	private int validPeriod;
	// 开始生效天数（0表示立即生效）
	private Long fixedBeginTerm;	
	
	public String getTicketDefId() {
		return ticketDefId;
	}
	public void setTicketDefId(String ticketDefId) {
		this.ticketDefId = ticketDefId;
	}
	public String getTicketName() {
		return ticketName;
	}
	public void setTicketName(String ticketName) {
		this.ticketName = ticketName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getBalance() {
		return balance;
	}
	public void setBalance(Integer balance) {
		this.balance = balance;
	}
	public String getShowBalance() {
		return showBalance;
	}
	public void setShowBalance(String showBalance) {
		this.showBalance = showBalance;
	}
	public String getPicUrl() {
		return picUrl;
	}
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	public String getTicketType() {
		return ticketType;
	}
	public void setTicketType(String ticketType) {
		this.ticketType = ticketType;
	}
	public Integer getTicketNums() {
		return ticketNums;
	}
	public void setTicketNums(Integer ticketNums) {
		this.ticketNums = ticketNums;
	}
	public Long getQuantity() {
		return quantity;
	}
	public void setQuantity(Long quantity) {
		this.quantity = quantity;
	}
	public Integer getTicketPrice() {
		return ticketPrice;
	}
	public void setTicketPrice(Integer ticketPrice) {
		this.ticketPrice = ticketPrice;
	}
	public Long getBeginTimestamp() {
		return beginTimestamp;
	}
	public void setBeginTimestamp(Long beginTimestamp) {
		this.beginTimestamp = beginTimestamp;
	}
	public Long getEndTimestamp() {
		return endTimestamp;
	}
	public void setEndTimestamp(Long endTimestamp) {
		this.endTimestamp = endTimestamp;
	}
	public String getTimeFlag() {
		return timeFlag;
	}
	public void setTimeFlag(String timeFlag) {
		this.timeFlag = timeFlag;
	}
	public int getValidPeriod() {
		return validPeriod;
	}
	public void setValidPeriod(int validPeriod) {
		this.validPeriod = validPeriod;
	}
	public Long getFixedBeginTerm() {
		return fixedBeginTerm;
	}
	public void setFixedBeginTerm(Long fixedBeginTerm) {
		this.fixedBeginTerm = fixedBeginTerm;
	}

}